﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 唯一的五子棋
{
    public class Point
    {
       public  int x,y;
        public Point(int x = 0, int y = 0) { this.x = x; this.y = y; }
    }
    public partial class Form1 : Form
    {
        //第一步 创建基本的画图环境
        private Graphics g;
        private Bitmap buff;
        private Thread t1;//游戏线程
        private static int n = 10;
        //第二步 初始化游戏属性
        public List<Point> White = new List<Point>();
        public List<Point> Black = new List<Point>();
        /// <summary>
        /// 黑棋 1 白棋 2
        /// </summary>
        public int[,] chessBox = new int[n, n];
        public Form1()
        {
            InitializeComponent();
            this.Width = 600;
            this.Height = 600;
            buff = new Bitmap(500,500);
            g = Graphics.FromImage(buff);
            t1 = new Thread(Game);
            t1.Start();
        }
        void drawBackGround(Graphics g)
        {
            g.DrawLine(new Pen (new SolidBrush(Color.Black),4),25,25,475,25);
        }
        void Game()
        {

        }

        private void draw(object sender, PaintEventArgs e)
        {
            e.Graphics.DrawImage(buff, 0, 0);
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void MouseUP(object sender, MouseEventArgs e)
        {

        }
    }
}
